package com.broada.apm.indicator.api;

import java.io.IOException;
import java.util.List;

import com.broada.apm.indicator.api.common.ApmDataIndicatorException;
import com.broada.apm.indicator.api.model.SearchCondition;
import com.broada.apm.model.ErrorDetail;
import com.broada.apm.model.ErrorRecord;
import com.broada.apm.model.ErrorRecordView;
import com.broada.apm.model.PagingList;
import com.broada.apm.model.PerformanceView;

public interface ErrorRecordService {
    public PagingList<ErrorRecordView> queryAggregationTermsErrorRedords(String applicationId, SearchCondition searchCondition);
    public void recordErrors(List<ErrorRecord> errorRecords) throws ApmDataIndicatorException;
    void recoredErrorDetail(List<ErrorDetail> errorDetails) throws IOException;
    public List<ErrorRecordView> queryErrorRedords(String applicationId, SearchCondition searchCondition) throws ApmDataIndicatorException;
    public List<PerformanceView> queryAggregationTermsErrorRedord(String applicationId, SearchCondition searchCondition) throws ApmDataIndicatorException;
	public List<PerformanceView> queryErrorDetail(String appId, SearchCondition con) throws ApmDataIndicatorException ;
}
